package contacts614.po;

import java.io.Serializable;
import java.util.Date;

public class Student implements Serializable {// 学生基本信息
	private String studentNo;
	private String studentName;
//	private String majorClassId;有联系
	private Room room;// 用对象更好,不会可用上一行的
	private Date studentBirth;
	private String studentTelephone;
	private String studentEmail;
	private String studentAddress;

	/**
	 * Student的无参构造方法
	 */
	public Student() {
		super();
	}

	/**
	 * Student的有参构造方法
	 * 
	 * @param studentNo学号
	 * @param studentName姓名
	 * @param room宿舍号
	 * @param studentBirth出生日期
	 * @param studentTelephone电话号码
	 * @param studentEmail邮箱
	 * @param studentAddress地址
	 */
	public Student(String studentNo, String studentName, Room room, Date studentBirth, String studentTelephone,
			String studentEmail, String studentAddress) {
		super();
		this.studentNo = studentNo;
		this.studentName = studentName;
		this.room = room;// 一定这样写的,int roomId;myFriend
		// 如果一个宿舍住多个人就ListRoom
		this.studentBirth = studentBirth;
		this.studentTelephone = studentTelephone;
		this.studentEmail = studentEmail;
		this.studentAddress = studentAddress;
	}

	public String getStudentNo() {
		return studentNo;
	}

	public void setStudentNo(String studentNo) {
		this.studentNo = studentNo;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	public Date getStudentBirth() {
		return studentBirth;
	}

	public void setStudentBirth(Date studentBirth) {
		this.studentBirth = studentBirth;
	}

	public String getStudentTelephone() {
		return studentTelephone;
	}

	public void setStudentTelephone(String studentTelephone) {
		this.studentTelephone = studentTelephone;
	}

	public String getStudentEmail() {
		return studentEmail;
	}

	public void setStudentEmail(String studentEmail) {
		this.studentEmail = studentEmail;
	}

	public String getStudentAddress() {
		return studentAddress;
	}

	public void setStudentAddress(String studentAddress) {
		this.studentAddress = studentAddress;
	}

	@Override
	public String toString() {
		return "Student [studentNo=" + studentNo + ", studentName=" + studentName + ", room=" + room + ", studentBirth="
				+ studentBirth + ", studentTelephone=" + studentTelephone + ", studentEmail=" + studentEmail
				+ ", studentAddress=" + studentAddress + "]";
	}

}
